package com.bishe.bishe.Service.ServiceImpl;

import com.bishe.bishe.Service.OrderdetailService;
import com.bishe.bishe.dao.mapper.OrderdetailMapper;
import com.bishe.bishe.pojo.Orderdetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrderdetailServiceImpl implements OrderdetailService {
    @Autowired
    private OrderdetailMapper orderdetailMapper;


    @Override
    public List <Orderdetail> findOrderdetail(Long orderId) {
        List orderdetail = orderdetailMapper.findOrderdetail(orderId);
       return orderdetail;
    }

    @Override
    public int insert(Orderdetail orderdetail) {
        return orderdetailMapper.insert(orderdetail);
    }
}
